package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.SysRoles;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRolesMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(SysRoles record);

    int insertSelective(SysRoles record);

    SysRoles selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(SysRoles record);

    int updateByPrimaryKey(SysRoles record);

    int getMaxId();
    
    int getCount(@Param("where")String where);

    List<SysRoles> findWhereList(@Param("where")String where, @Param("order")String order);

    List<SysRoles> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int deleteByWhere(@Param("where")String where);
}